#include "Buzzer.h"

sbit Buzzer = P2^5;
void Delay500us(void)	//@11.0592MHz
{
	unsigned char data i;

	_nop_();
	i = 227;
	while (--i);
}

void Buzzer_Time(unsigned int ms)
{
	unsigned int i = 0;
	for (i = 0;i <= ms*2;i++)
	{
		Buzzer = !Buzzer;
		Delay500us();
	}
}
